package test3.A1_2;

// 示例代码
public class Main {
    public static void main(String[] args) {
        College college = new College();

        // 创建建筑
        Building buildingA = new Building("Engineering Building");
        Building buildingB = new Building("Science Building");
        college.addBuilding(buildingA);
        college.addBuilding(buildingB);

        // 创建课程
        Course course1 = new Course("Computer Science 101", buildingA);
        Course course2 = new Course("Biology 101", buildingB);
        college.addCourse(course1);
        college.addCourse(course2);

        // 输出学院信息
        System.out.println(college);
    }
}